This resource address creates a flexible push replication configuration, along with the indexes needed for CPF-based flexible replication on the specified database. For an example, see Creating a Replication Configuration Element in the Scripting Administrative Tasks Guide.
URL Parameters | |
---|---|
format | The format of the request body. Can be either
html , json , or xml (default). This value overrides
the Accept header if both are present. |
Upon success, MarkLogic Server returns status code 201 (Created). If the payload is malformed or the database does not exist, a status code of 400 (Bad Request) is returned. A status code of 401 (Unauthorized) is returned if the user does not have the necessary privileges.
manage-admin
role, or the following
privileges: http://marklogic.com/xdmp/privileges/manage
http://marklogic.com/xdmp/privileges/manage-admin
domain-name
property specifies the replication domain for the
documents to be replicated. The alerting-uri
property is optional. domain-name
alerting-uri
curl -X POST --anyauth --user admin:admin --header "Content-Type:application/json" \ -d '{"domain-name": "myDomain", "alerting-uri": "http://otherserver.org/doIt"}' \ http://localhost:8002/manage/v2/databases/Foo/flexrep/configs ==> Sets the domain name and alerting URI in the flexible replication configuration for the Foo database.